<nav id="access" class="access" role="navigation">
<div id="menu" class="menu">
  <ul id="tiny">
    <li><a href="<?php echo Yii::app()->baseUrl?>/" >Trang chủ</a>
    </li>
    <?php foreach ($categories as $key => $value) {?>
        <li>      
          <a href="<?php echo Yii::app()->baseUrl?>/product/index/catID/<?php echo md5($key)?>"
          title="<?php echo $value?>"> <?php echo $value?>
          </a> 
          <?php $children = Category::model()->getChildren($key) ?>
          <?php if(!empty($children)){?>
          <ul>
            <?php foreach ($children as $k =>$v){?>              
              <li><a href="<?php echo Yii::app()->baseUrl?>/product/index/catID/<?php echo md5($k)?>"
              title="<?php echo $v?>"> <?php echo $v?>
              </a></li>
            <?php }?>
          </ul>
          <?php }?>
                   
        </li>
      <?php }?> 
   
    <li><a href="<?php echo Yii::app()->baseUrl?>/article/sample">Công trình</a></li>
    <li><a href="<?php echo Yii::app()->baseUrl?>/article/index/">Tư vấn sử dụng</a> </li>

    <li><a href="<?php echo Yii::app()->baseUrl?>/site/contact/">Liên hệ</a></li>
  </ul>
</div>
</nav>
